<!DOCTYPE html>
<html>

<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <title>活动规则</title>
    <link href="{$Think.config.RESOURCEURL}wx_assets/css/common.css" rel="stylesheet" type="text/css">
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.1.1.3.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/zepto.alert.js"></script>
    <script src="{$Think.config.RESOURCEURL}wx_assets/js/util.js{$Think.config.RESOURCE_VER}" type="text/javascript"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script type="text/javascript" src="{$Think.config.RESOURCEURL}wx_assets/js/wx_share.js{$Think.config.RESOURCE_VER}"></script>
    <style>
        body{background-color:#EBEBEB;}
    </style>
</head>
<body>
    <img style="width:100%" src="{$Think.config.RESOURCEURL}wx_assets/freebuy/img/rule.jpg{$Think.config.RESOURCE_VER}"/>
</body>
<script>
var baseUrl = '{$Think.config.SERVER_HOST}';
var viewPage = {
    getShareUrl:function(){
        var shareUrl="";
        var me=this;
        var params={
            "oid":"{$id}",
            "qId":"{$qId}",
            "miUId":"{$miUid}"
        };
        params=encodeURIComponent(JSON.stringify(params));
        shareUrl=baseUrl+'call.html?customerId={$customerId}&module=freebuy&method=getQrCode&params='+params;
        return shareUrl;
    }  
};
var shareUrl=viewPage.getShareUrl();
wx_share.init({
    "title":'快来帮我抢呀，【{$productList.name}】仅需1元！',
    "desc":"我能不能抢到，全看你的了，你看着办吧。",
    "link":shareUrl,
    "imgUrl":"{$headimgurl}",
    "pkg":{
        "appId": '{$pkg.appId}',
        "timestamp": {$pkg.timestamp},
        "nonceStr": '{$pkg.nonceStr}',
        "signature": '{$pkg.signature}'
    },
    success:function(config,shareType){
       
    }
});
</script>

</html>
